import http from '../utils/http'

/**
 * 
 * @param { Object } param { page, limit, category1Id, category2Id }
 * @returns Promise
 */
export const reqGoodsList = ({page, limit, ...data}) => {
  return http.get(`/goods/list/${page}/${limit}`, data)
}

export const reqGoodsInfo = (goodsId) => {
  return http.get(`/goods/${goodsId}`)
}
